package com.ym.medical.domain.param;

import com.ym.common.enums.SmsTemplateEnum;
import com.ym.medical.enums.SmsCodeTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;


@ApiModel(value = "验证码验证")
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Data
public class VerificationCodeParam {

	@ApiModelProperty("电话号码")
	@NotEmpty
	private String phone;

	@ApiModelProperty("验证类型")
	@NotNull
	private SmsCodeTypeEnum codeType;

	@ApiModelProperty("短信模板")
	@NotNull
	private SmsTemplateEnum tempType;

	@ApiModelProperty("验证码")
	@NotEmpty
	private String code;
}
